package com.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 商品表
 * @author lifeng
 * @create 2022-11-18 11:33
 */
@Data//get、set方法
@AllArgsConstructor//全参构造
@NoArgsConstructor//空参构造
@ToString//toString
@TableName("goods")
public class Goods {
    private Integer gId;//商品id
    private String goodsName;//商品名字
    private String goodsDetail;//商品详情
    private Integer goodsPrice;//商品价格
    private Integer goodsGrade;//商品评分
    private Integer goodsInventory;//商品库存
    private char isHot;//是否热门
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;//修改时间
    private Integer merchantId;//商家id
    private Integer buyNum;//购买数量
    private Integer e_id;//商品评价id
}
